@extends('admin.admin')

@section('content')
@inject('pictureService', 'App\Interfaces\PictureService')

        <!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        关键词设置
        <small>关键词列表</small>
        <small>修改</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 控制面板</a></li>
        <li >关键词设置</li>
        <li ><a href="/admin/keywords">关键词列表</a></li>
        <li class="active">修改</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">

    <div class="row">
        <div class="col-xs-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">关键词修改</h3>

                    <div class="pull-right">
                        <a href="{{Route('admin.keywords.index')}}" type="button" class="btn btn-block btn-success btn-xs"><i
                                    class="icon  glyphicon glyphicon glyphicon-menu-left"></i> 返回</a>
                    </div>
                </div>
                <!-- /.box-header -->
                <!-- form start -->
                {!! Form::model($keywords, ['route'=>['admin.keywords.update', $keywords->id], 'method'=>'put','class'=>'form-horizontal'])  !!}
                {!! Form::hidden('back_url', @$_SERVER['HTTP_REFERER']) !!}
                <div class="box-body">
                    <div class="form-group @if($errors->has('name')) has-error @endif">
                        <label for="exampleInputEmail1" class="col-sm-2 control-label">关键词名称</label>
                        <div class="col-sm-3">
                            {!! Form::text('name', old('name'), array('class'=>'form-control','placeholder'=>'请填写关键词'))!!}
                            @if($errors->has('name'))
                                <label class="control-label" for="inputError"><i
                                            class="fa fa-times-circle-o"></i> {{$errors->first('name')}}</label>
                            @endif
                        </div>
                    </div>

                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <div class="form-group no-padding">
                        <label class="col-sm-2 control-label">&nbsp;</label>
                        <div class="col-sm-3">
                            <button type="submit" class="btn btn-primary">保存</button>
                        </div>
                    </div>
                </div>
                {!! Form::close()  !!}
            </div>
            <!-- /.box -->
        </div>
    </div>


</section>
<!-- /.content -->
@endsection